package cn.lzh.mapper;

import cn.lzh.entity.Hot;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HotMapper {
public List<Hot> findAll();
    public void  addHot(Hot hot);
    public Hot finsByid(int id);
    public int delete (Integer id);
    //根据类别查询
    public List<Hot> findByType(@Param("type") int n1, @Param("num") int n2);
}
